/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-07-19
 * Time: 18:23
 */
public class Main_7 {
    public static void main(String[] args) {
        String s1 = "abababll";
        String s2 = s1.replace('a','c');
        String s3 = s1.replace("ab","ooo");
        String s4 = s1.replaceAll("ab","ooo");
        String s5 = s1.replaceFirst("ab","ooo");

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);
        System.out.println(s5);
    }
}
